<app-head login="isLogin"></app-head>
<wx-share></wx-share>
<div class="start_container start_mt6 start_loading">
	
	<div class="start_tab">
		<ul>
			<li><a href="#/home/index">热门</a></li>
			<li class="active"><a href="#/school/index">学校</a></li>
			<!-- <li class="search_bar">
				<input type="text" placeholder="姓名、学校或职称" ng-model="key">
				<div class="start_searchbtn"></div>
			</li> -->
		</ul>
	</div>

	<div class="start_list start_school_list">
		<ul>
			<li ng-repeat="item in schooleList" ng-class="{0:'active'}[$index]">
				<a href="#/school/detail/{{item.id}}" ng-show="!showSchoolDetail">
					{{item.name}}
				</a>
				<a href="javascript:;" ng-show="showSchoolDetail" ng-click="getTeacherBySchool($event,item.id)" >
					{{item.name}}
				</a>
				<ul class="start_school_sublist" ng-show="showSchoolDetail">
					<li class="current" ng-click="getTeacherByDepartment($event,0)">全部</li>
					<li ng-repeat="vo in item.department" ng-click="getTeacherByDepartment($event,vo.id)">{{vo.name}}</li>
				</ul>
			</li>
		</ul>
	</div>
	<div class="start_school_stuff" ng-show="showSchoolDetail">
		<h5>{{list[0].school_name}}</h5>
		<div class="start_list">
			<ul>
				<li ng-repeat="item in list">
					<a href="#/home/detail/{{item.id}}" target="_BLANK">
						<div class="start_headimg">
							<img ng-src="{{item.pic}}">
							<div class="start_comment_num">{{item.comment_num}}</div>
						</div>
						<div class="start_name">
							{{item.name}}
						</div>
						<div class="start_description">
							{{item.school_name}}<br>{{item.academy}} {{item.description}}
						</div>
						<div class="start_good_and_bad">
							<div class="start_num start_good_num">
								<button>{{item.good}}</button>
							</div>
							<div class="start_num start_bad_num">
								<button>{{item.bad}}</button>
							</div>
						</div>
					</a>
				</li>
			</ul>
		</div>

		<ul class="start_page" ng-show="showMe">
			<li ng-click="page(curPage-1)" ng-show="curPage > 1">
				<img src="../meet/static/images/iconfont-bbgxiangzuo.png">
			</li>
			<li ng-repeat="item in pageList" ng-class="{true:'active'}[item==curPage]" ng-click="page(item)">{{item}}</li>
			<li ng-click="page(curPage+1)" ng-show="curPage < totalPage">
				<img src="../meet/static/images/iconfont-bbgxiangyou.png">
			</li>
		</ul>

	</div>

</div>